package org.eclipse.pde.toolbox.internal;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

import org.eclipse.core.internal.registry.ExtensionPoint;
import org.eclipse.core.internal.runtime.AdapterManager;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.core.runtime.IAdapterManager;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.core.runtime.Platform;
import org.eclipse.ui.internal.testing.PluginContributionAdapterFactory;


public class Test {

	public void test1(){
		String[] lstNamespaces= Platform.getExtensionRegistry().getNamespaces();
		
		IExtensionRegistry r= Platform.getExtensionRegistry();
	//	IExtension[] extensions=r.getExtensions(contributor);
		IExtensionPoint[] iep = r.getExtensionPoints();
		for (int i=0;i< iep.length;i++){
			ExtensionPoint ep=(ExtensionPoint) iep[i];
		}
		
		AdapterManager adapterManager= (AdapterManager) Platform.getAdapterManager();
		
		
		
		HashMap adaptorFactories= adapterManager.getFactories();
		for (int i=0; i<adaptorFactories.size();i++){
			Set set= adaptorFactories.entrySet();
			
			for (Iterator it=set.iterator();it.hasNext(); ){
				Map.Entry entry = (Map.Entry) it.next();
				
			}
		}
		
		
		IAdapterFactory adapterFactory=new PluginContributionAdapterFactory();
		Class[] adapterTypes= adapterFactory.getAdapterList();
		IAdaptable das;
		
	}
}
